cmake_minimum_required(VERSION 3.16)
project(dems)

set(DEV ${CMAKE_HOME_DIRECTORY}/dEFunc)
set(SEGCC ${DEV}/segcc)
set(SEJDK ${DEV}/sejdk)
set(SEPYTHON ${DEV}/sePython)
set(SHELL ${CMAKE_HOME_DIRECTORY}/shell)
set(VIRENV ${DEV}/virenv)


set(Proj_Lnk_Libs 
${SHELL}/build/libshell.so
${SEGCC}/build/libsegcc.so

${SEJDK}/build/libsejdk.so
${SEPYTHON}/build/libsepython.so
${VIRENV}/build/libvirenv.so
)

# ${SEGCC}/build/libsegcc.so




include_directories(${SHELL}/include
        ${CMAKE_HOME_DIRECTORY}/include)
# ${SEGCC}/include
# )

add_subdirectory(${SHELL} ${SHELL}/build)
add_subdirectory(${SEGCC} ${SEGCC}/build)
add_subdirectory(${SEJDK} ${SEJDK}/build)
add_subdirectory(${SEPYTHON} ${SEPYTHON}/build)
add_subdirectory(${VIRENV} ${VIRENV}/build)
#add_subdirectory(${RUN} ${RUN}/build)

aux_source_directory(. SRCES)
file(GLOB SRCES2 ./src/*.cc)

add_executable (dems ${SRCES} ${SRCES2})
target_link_libraries(dems ${Proj_Lnk_Libs})